## Incorporating Sound Objects into Games

In order to link files received from the sound engineer to the main program, all of the files received should be placed in an arbitrary directory. Then, the "Makefile" should be changed as follows.

      *Add the following two lines to the head of the "Makefile."*

        SOUND_DIR = Name of Directory to be placed in the sound file/
        include $(SOUND_DIR)Soundfiles

     *Add $(SOUND_FILES) to the written portion of the link.*

      $(TARGET_ELF): $(.OFILES) $(SOUND_FILES) Makefile $(DEPENDFILE)
        @echo > $(MAPFILE)
        $(CC) -g -o $@ $(.OFILES) $(SOUND_FILES) -Wl, $(LDFLAGS)

Furthermore, it is possible that there could be object files having rejected data among the files received from the sound engineer. However, unnecessary object file names will not be output to the "Soundfiles," so there is no need to worry about links to unneeded data.

Next:[ Sound Functions -- Summary ] Back:[ Description of Files ] TOP :[ Table of Contents ]